package com.nzy.tree;

import java.io.Serializable;
import java.util.List;

/**
 * 角色视图Vo
 *
 * @author ningzhaoyun
 */
public class RoleViewVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 权限id
     */
    private Long id;
    /**
     * path
     */
    private String path;
    /**
     * 跳转地址
     */
    private String component;
    /**
     * name
     */
    private String name;
    /**
     * title
     */
    private String title;
    /**
     * 是否有权限 0-无 1-有
     */
    private Integer havePermissionId;
    /**
     * 视图类型
     * 0-系统
     * 1-页面
     * 2-按钮
     * 3-目录
     * 4-外链
     */
    private Integer type;

    /**
     * 图标
     */
    private String icon;

    /**
     * 是否隐藏0-显示，1-隐藏
     */
    private Integer hidden;

    /**
     * 所属应用
     */
    private String appId;
    /**
     * 父id
     */
    private Long parentId;
    /**
     * 顺序
     */
    private Integer num;

    /**
     * 子级
     */
    private List<RoleViewVo> children;
    /**
     * 按钮
     */
    private List<RolePermissionButtonVo> buttons;

    /**
     * keepAlive 0-是，1-否
     */
    private Integer keepAlive;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getHavePermissionId() {
        return havePermissionId;
    }

    public void setHavePermissionId(Integer havePermissionId) {
        this.havePermissionId = havePermissionId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getHidden() {
        return hidden;
    }

    public void setHidden(Integer hidden) {
        this.hidden = hidden;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public List<RoleViewVo> getChildren() {
        return children;
    }

    public void setChildren(List<RoleViewVo> children) {
        this.children = children;
    }

    public List<RolePermissionButtonVo> getButtons() {
        return buttons;
    }

    public void setButtons(List<RolePermissionButtonVo> buttons) {
        this.buttons = buttons;
    }

    public Integer getKeepAlive() {
        return keepAlive;
    }

    public void setKeepAlive(Integer keepAlive) {
        this.keepAlive = keepAlive;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }
}
